package com.yuan.springcloud.product.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author YouYuan
 * @date 2020/4/7 4:31
 */
@RestController
@RequestMapping("/config")
public class ConfigController {

    @Value("${config.test1}")
    private String test1;
    @Value("${config.test2}")
    private String test2;

    @RequestMapping(value = "/test1", method = RequestMethod.GET)
    public String test1(){
        return test1;
    }
    @RequestMapping(value = "test2", method = RequestMethod.GET)
    public String test2(){
        return test2;
    }
}
